package com.bloomberg.tetris.pieces;

import com.bloomberg.tetris.components.Square;

import android.content.Context;

public class IPiece extends Piece4x4 {

    private Square iSquare;

    public IPiece(Context c) {
        super(c);
        iSquare = new Square(type_I, c);
        pattern[2][0] = iSquare;
        pattern[2][1] = iSquare;
        pattern[2][2] = iSquare;
        pattern[2][3] = iSquare;
        reDraw();
    }

    @Override
    public void reset(Context c) {
        super.reset(c);
        pattern[2][0] = iSquare;
        pattern[2][1] = iSquare;
        pattern[2][2] = iSquare;
        pattern[2][3] = iSquare;
        reDraw();
    }

}
